/**
 * 发起网络请求
 * @author:yyb
 * @description :首页接口,公共接口
 */

import request from '../utils/request'

export const getHomeData = () => request.get('homeApi')
// 分类左侧
// export const getCateData = () => request.get('homeApi/categories')
// categoriesdetail/lk001
// 分类右侧
// export const getCateGoodsData = (id) => request.get('homeApi/categoriesdetail/lk001')
// 分类
export const getCateData = () => request.get('homeApi/categoriesdetail/lk003')

// 发送验证码
export const sendCode = (phone) => request.get(`send_code?phone=${phone}`)
// http://demo.itlike.com/web/xlmc/api/login_code
// 登录
export const login = (data) => request.post(`login_code`,data)
